package guyubao.com.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import guyubao.com.entity.dto.LoginMapperUserDto;
import guyubao.com.entity.vo.response.JDAccountVo;
import guyubao.com.utils.MybatisRedisCache;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
//@CacheNamespace(implementation = MybatisRedisCache.class,eviction = MybatisRedisCache.class)
public interface LoginMapperUserMapper extends BaseMapper<LoginMapperUserDto> {

    @Select("select uid from loginMapperUser where id=#{id}")
    List<String> getUIdById(String id);
    @Select("select uid from loginMapperUser")
    List<String> getUId();
    @Select("select id from loginMapperUser where uid=#{uid}")
    String getIdByUId(String uid);

    @Select("DELETE FROM loginMapperUser WHERE uid=#{uid} ")
    Integer delLoginMapperUserByUId(String uid);
}
